package test.enba.swagger.controller;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.Data;

@ApiModel("通用返回结果")
@Data
public class ResponseResult<T> {
  @ApiModelProperty(value = "状态码", example = "200")
  private int code;

  @ApiModelProperty(value = "返回消息", example = "操作成功")
  private String message;

  @ApiModelProperty(value = "返回数据")
  private T data;

  public static ResponseResult<?> success(User user) {
    return null;
  }


}
